package com.examsystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;


/**
 * @author Administrator
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("user")
public class User implements Serializable {
    private static final long serialVersionUID = -1;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(value = "user_id",type = IdType.AUTO)
    private int userId;
    private String userPhoneNum;
    private String userPassword;
    private String userIdentity;
    private String userName;
    private String photoUrl;
    private String gender;
}
